package com.ruoyi.net.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网元-QOS配置-流策略对象 element_qos_strategy
 * 
 * @author net
 * @date 2024-11-17
 */
public class ElementQosStrategy extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 网元id
     */
    @Excel(name = "网元id")
    private String elementId;

    /**
     * 流策略名称
     */
    @Excel(name = "流策略名称")
    private String strategyName;

    /**
     * 流策略模式
     */
    @Excel(name = "流策略模式")
    private String strategyMode;

    /**
     * 流分类流行为关系
     */
    @Excel(name = "流分类流行为关系")
    private String actionRelation;

    private ElementQosStrategyAction qosStrategyAction = new ElementQosStrategyAction();

    /**
     * 流分类 id
     */
    private String flowId;

    /**
     * 流行为 id
     */
    private String actionId;

    /**
     * 条目状态（0未激活 1已激活）
     */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    private String status;

    /**
     * 删除标记（0正常 2删除）
     */
    private String delFlag;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public String getElementId() {
        return elementId;
    }

    public void setStrategyName(String strategyName) {
        this.strategyName = strategyName;
    }

    public String getStrategyName() {
        return strategyName;
    }

    public void setStrategyMode(String strategyMode) {
        this.strategyMode = strategyMode;
    }

    public String getStrategyMode() {
        return strategyMode;
    }

    public void setActionRelation(String actionRelation) {
        this.actionRelation = actionRelation;
    }

    public String getActionRelation() {
        return actionRelation;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public ElementQosStrategyAction getQosStrategyAction() {
        return qosStrategyAction;
    }

    public void setQosStrategyAction(ElementQosStrategyAction qosStrategyAction) {
        this.qosStrategyAction = qosStrategyAction;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }


    public String getActionId() {
        return actionId;
    }

    public void setActionId(String actionId) {
        this.actionId = actionId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("elementId", getElementId())
                .append("flowId", getFlowId())
                .append("actionId", getActionId())
                .append("strategyName", getStrategyName())
                .append("strategyMode", getStrategyMode())
                .append("actionRelation", getActionRelation())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
